<style>
    .layui-nav-item dl{
        margin-top: 60px;
    }
    .layui-nav-child {
    top: 0px;
 }
</style>
<header>
    <div class="container">
        <div class="logo fl">
            <a href="/">
                <img id="logo" src="{:sysconfig('site.logo_image')}" onerror="this.src='__STATIC__/common/images/logo.png'" alt="LAYSNS"/>
            </a>
        </div>
        <nav class="fl">
            <ul class="layui-nav">
                <?php $seoHomeName=sysconfig('seo.home_name');?>
                <li class="layui-nav-item"><a href="/">{:$seoHomeName?$seoHomeName:'首页'}</a></li>
                {volist name="nav1" id="vo"}
                <li class="layui-nav-item {if $URI eq $vo.link}layui-this{/if}"><a href="{$vo.link}">{$vo.title}</a>
                    {if $vo.son}
                    <dl class="layui-nav-child layui-anim layui-anim-upbit">
                        {volist name="vo.son" id="voo"}
                        <dd><a href="{$voo.link}">{$voo.title}</a></dd>
                        {/volist}
                    </dl>
                    {/if}
                </li>
                {/volist}
             </ul>
        </nav>
        <div class="fr header-user"></div>
        <div class="search-open fr">
            <i class="fa fa-search" onclick="opensearcbox();"></i>
        </div>
        {if sysconfig('system.night_mode')}
        <div class="fr night-open">
            <a href="javascript:switchNightMode()"><i class="night fa fa-moon-o"></i></a>
        </div>
        {/if}
        <div class="menu fr"><i class="fa fa-bars"></i></div>
    </div>
</header>